﻿using CustomAuthorization.Models;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore;

namespace CustomAuthorization
{
    public class SqlServerIdentityDbContext:IdentityDbContext<User>
    {
        public SqlServerIdentityDbContext(DbContextOptions<SqlServerIdentityDbContext> options):base(options)
        {

        }
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
            builder.ApplyConfiguration(new UserConfig());
            builder.ApplyConfigurationsFromAssembly(typeof(SqlServerIdentityDbContext).Assembly);
        }
    }
}
